package com.wiseMen.weixin.main;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wiseMen.wechat.subscribe.SubscribeService;

@Service(value="WeChatService")
public class WeChatService {

	@Autowired
	private SubscribeService subscribeService;
	
	/**
	 * 关注/取消关注
	 * @param openId 微信ID
	 * @param code 关注标识： 1：关注 2：取消关注 
	 */
	public void subscribe(String openId, int code){
		subscribeService.add(openId, code);
	}
}